package cola.rh.System.Mapper;

import cola.rh.System.Entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Name: MenuMapper
 * @Author: Cola
 * @Time: 2023/3/11 13:59
 * @Description: MenuMapper
 */
@Mapper
public interface MenuMapper extends BaseMapper<Menu> {
    /**
     * 关联查询： 用户角色关系表、角色菜单关系表、菜单表
     *
     * @param userId
     * @return
     */
    List<Menu> findListByUserId(@Param("userId") Long userId);
}
